package xyz.xtt.asset.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 1155资产交易详情表
 * </p>
 *
 * @author author
 * @since 2024-12-25
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_asset_transaction_record")
@ApiModel(value = "TblAssetTransactionRecord对象", description = "1155资产交易详情表")
public class TblAssetTransactionRecord implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "帐户编号")
	private Long accountNo;

	@ApiModelProperty(value = "交易记录表")
	private Long transactionId;

	@ApiModelProperty(value = "上次结余")
	private BigDecimal beforeAmount;

	@ApiModelProperty(value = "总价")
	private BigDecimal totalPrice;
	@ApiModelProperty(value = "发生额")
	private BigDecimal amount;

	@ApiModelProperty(value = "费用")
	private BigDecimal fees;

	@ApiModelProperty(value = "余额")
	private BigDecimal afterAmount;

	@ApiModelProperty(value = "0转出方1转入方")
	private Integer side;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

}
